#!/bin/sh

echo backing up mysql data to mysql-bk$1 
sudo service mysqld stop
sudo cd /var/lib/
sudo tar zcvf mysql-bk$1.tar.gz mysql
sudo service mysqld start
sudo /var/www/argus/argus.sh
scp -p 22225 mysql-bk$1.tar.gz xingang@166.111.68.233:~/development/argus/

